package summer_vacation.lvchang.myyVacation;

/**
 * Created by Administrator on 2015/9/6.
 */
public class Text8 {
    public static void main(String[] args) {
        int i;
        int sum = 0;
        for (i = 1; i <= 10; i++) {
            sum = sum + i;

        }
        System.out.println("1加到10的和为：" + sum);
    }
}